﻿using System;
using System.Windows.Forms;

namespace PGPNotepad
{
    public partial class frmGenericForm : Form
    {
        public frmPassphrase()
        {
            InitializeComponent();
            this.Text = string.Format("Passphrase - {0}", Application.ProductName);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            // if nothing entered then return to form
            if (string.IsNullOrEmpty(textBox1.Text))
                return;

            this.DialogResult = DialogResult.OK;
            this.Close();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            textBox1.Text = string.Empty;
            this.DialogResult = DialogResult.Cancel;
            this.Close();
        }
    }
}
